package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
*
* </p>
*
* @author 作者
* @since 2022-10-11
*/
@Getter
@Setter
@Accessors(chain = true)
public class Seat extends Model<Seat> {

  private static final long serialVersionUID = 1L;

  /**
  * 该位置的唯一标识id，即座位id
  */
  @ApiModelProperty(value = "座位id")
  @TableId(value = "seat_id", type = IdType.ASSIGN_ID)
  private Integer seatId;

  /**
  * 该位置的位置名，即座位名
  */
  @ApiModelProperty(value = "座位名")
  private String seatName;

  /**
  * 该位置最大能坐的人数
  */
  @ApiModelProperty(value = "座位容纳的最大人数")
  private Integer maxPeopleNum;


  @Override
  public Serializable pkVal() {
    return this.seatId;
  }

}
